package com.echo.fm.user.role;

import java.util.List;

import org.hibernate.criterion.Criterion;

import com.echo.fm.content.systemAction.model.SystemAction;
import com.echo.fm.platform.auth.model.RoleAuth;
import com.echo.fm.user.role.model.Role;
import com.echo.util.ErrorException;

public interface IRoleService {

	void createRole(Role role) throws ErrorException;

	void deleteRole(Role role) throws ErrorException;

	void updateRole(Role role) throws ErrorException;

	Role searchRoleById(String roleId) throws ErrorException;

	List<Role> searchRoleList(List<Criterion> criterions) throws ErrorException;

	SystemAction searchSystemAction(String id) throws ErrorException;

	void insertRoleAuth(RoleAuth roleAuth) throws ErrorException;

	void deleteRoleAuthByRoleId(Integer roleId) throws ErrorException;

	List<RoleAuth> searchRoleAuthIdByRoleId(List<Criterion> criterions) throws ErrorException;

	void insertRoleAuth(List<RoleAuth> ralist) throws ErrorException;

}
